package com.example.extenddemo.extendsDemo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @ClassName TestFiled
 * @Description TODO
 * @Author 郭敖
 * @Date 2024年01月04日 21:52
 * @Version 1.0
 */
@Component
@Data
public class TestFiled {
    private String name;
    private Integer age;
    private String address;

    @Bean("stu")
    @ConfigurationProperties(prefix = "myfild")
    public TestFiled getTestFiled() {
        return new TestFiled();
    }
}
